.cover {
    height: 100%;
    width: 100%;
    background-image: url(../pic/bg5.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    /* 为了与主窗口重叠 */
    position: absolute;
    filter: blur(20px);
}

.client-container {
    min-width: 1000px;
    min-height: 620px;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 3%;
    box-sizing: border-box;
    overflow: auto;
}

.main {
    min-width: 1000px;
    min-height: 620px;
    width: 65vw;
    height: 83vh;
    max-width: 100vw;
    max-height: 100vh;
    background-color: rgb(238, 238, 238);
    border-radius: 5px;
    display: flex;
    /* position: absolute; */
    position: relative;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
    box-sizing: border-box;
}

.main .left {
    width: 25%;
    height: 100%;
    background-color: rgb(67, 87, 121);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.main .right {
    width: 75%;
    height: 100%;
    padding: 0 20px;
}

.main .user {
    height: 70px;
    font-size: 20px;
    line-height: 80px;
    color: white;
    padding: 0 20px;
}

.main .left .search {
    height: 40px;
    padding: 0 20px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.main .left .search input {
    height: 30px;
    width: 210px;
    background-color: rgb(46, 60, 83);
    font-size: 14px;
    color: white;

    border: none;
    outline: none;
    padding-left: 10px;
    border-bottom-left-radius: 5px;
    border-top-left-radius: 5px;
}

.main .left .search button {
    height: 30px;
    width: 60px;
    background-color: rgb(46, 60, 83);
    background-image: url(../pic/search.png);
    outline: none;
    border: none;
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: center center;
    cursor: pointer;
}

.main .left .tab {
    height: 50px;
    display: flex;
    align-items: center;

}

.main .left .tab .tab-session {
    height: 100%;
    width: 50%;
    background-image: url(../pic/dialog.png);
    background-repeat: no-repeat;
    background-size:40px 40px;
    background-position: center center;
    cursor: pointer;
}

.main .left .tab .tab-friend {
    height: 100%;
    width: 50%;
    background-image: url(../pic/user2.png);
    background-repeat: no-repeat;
    background-size: 35px 35px;
    background-position: center center;
    cursor: pointer;
}

.main .left .list {
    min-height: 460px;
    height: 74%;
    /* 滚动条 */
    overflow: auto;   
}

.main .left .list li {
    height: 60px;
    padding: 10px 20px;
    color: white;
    border-top: 1px solid rgb(56, 74, 101);
}

.main .left .list .selected {
    background-color: rgb(64, 83, 115);
}

/* 会话列表 */
.main .left .list li h3, 
.main .left .list li p {
    height: 20px;
    font-size: 15px;
    line-height: 20px;
    font-family: '幼圆';
}

/* 好友列表 */
.main .left .list li h4 {
    font-size: 20px;
    height: 40px;
    line-height: 40px;
    border: none;
}

/* 自动隐藏 */
.hide {
    display: none;
}

.main ::-webkit-scrollbar {
    display: none;
}

.main .right .title {
    width: 100%;
    height: 50px;
    line-height: 50px;
    font-size: 20px;
    text-align: center;
    border-bottom: 1px solid #ccc;
}

.main .right .message-show {
    height: 73%;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    overflow: auto;
}

.main .right .message-show .message {
    margin-top: 10px;
    display: flex;
}

.main .right .message-input {
    /* 转成块级元素 */
    display: block;
    font-size: 14px;
    width: 100%;
    height: 13%;
    border: none;
    outline: none;
    margin-top: 3px;
    background-color: rgb(238, 238, 238);
    padding: 5px;
    resize: none;
}

.main .right .ctrl {
    height: 35px;
    display: flex;
    justify-content: flex-end;
}

.main .right .ctrl button {
    height: 30px;
    width: 80px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.main .right .ctrl button:active {
    background-color: grey;
    color: white;
}

/*靠左*/
.main .right .message-show .message-left {
    justify-content: flex-start;
}

/*靠右*/
.main .right .message-show .message-right {
    justify-content: flex-end;
}


.main .right .message-show .message .box {
    max-width: 80%;
    width: fit-content;
}

.main .right .message-show .message .box h4 {
    font-weight: normal;
    height: 20px;
    line-height: 20px;
    font-size: 16px;
}

.main .right .message-show .message-right .box span {
    text-align: right;
}

.main .right .message-show .message .box p {
    padding: 10px;
    border-radius: 10px;
}

.main .right .message-show .message-left .box p {
    /* 泡泡效果 */
    background-color: #fff;
    backdrop-filter: blur(5px);
    border-radius: 20px;
    /* 气泡小三角 - 指向左下角 */
    &::before {
        content: '';
        position: absolute;
        left: -6px;
        bottom: 6px;
        width: 15px;
        height: 15px;
        background: #fff;
        clip-path: polygon(100% 0, 0% 100%, 100% 100%);
        transform: rotate(45deg);
    }
    /* 悬停效果 */
    transition: all 0.3s ease;
    &:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }
}

.main .right .message-show .message-right .box p {
    /* 泡泡效果 */
  background-color: rgba(77, 185, 224);
  backdrop-filter: blur(5px); /* 毛玻璃效果 */
  border-radius: 20px; /* 圆角半径 */
  
  /* 气泡阴影效果 */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  
  /* 文字样式 */
  color: #333;
  font-size: 16px;
  line-height: 1.5;
  
  /* 气泡小三角 */
  &::after {
        content: '';
        position: absolute;
        right: -6px;
        bottom: 6px;
        width: 15px;
        height: 15px;
        background: inherit;
        clip-path: polygon(0 0, 100% 100%, 0 100%); /* 创建直角三角形 */
        transform: rotate(-45deg); /* 调整角度 */
    }
  
  /* 悬停效果 */
  transition: all 0.3s ease;
  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  }
}